package com.netease.o.a;

import com.netease.f.b;
import com.netease.pris.atom.u;
import org.json.JSONObject;

public class a
{
  private static final String k = "docid";
  private static final String l = "title";
  private static final String m = "replyCount";
  private static final String n = "order";
  private static final String o = "priority";
  private static final String p = "imgsrc";
  private static final String q = "hasImg";
  private static final String r = "digest";
  private static final String s = "ptime";
  private static final String t = "url";
  String a;
  String b;
  int c;
  int d;
  int e;
  String f;
  String g;
  int h;
  String i;
  String j;

  public a(JSONObject paramJSONObject)
  {
    this.a = paramJSONObject.optString("docid");
    this.b = paramJSONObject.optString("title");
    this.c = paramJSONObject.optInt("replyCount");
    this.d = paramJSONObject.optInt("order");
    this.e = paramJSONObject.optInt("priority");
    this.f = paramJSONObject.optString("imgsrc");
    this.h = paramJSONObject.optInt("hasImg");
    this.g = paramJSONObject.optString("digest");
    this.i = paramJSONObject.optString("ptime");
    this.j = paramJSONObject.optString("url");
  }

  public String a()
  {
    return this.a;
  }

  public String b()
  {
    return this.b;
  }

  public int c()
  {
    return this.c;
  }

  public int d()
  {
    return this.d;
  }

  public int e()
  {
    return this.e;
  }

  public String f()
  {
    return this.f;
  }

  public int g()
  {
    return this.h;
  }

  public String h()
  {
    return this.g;
  }

  public String i()
  {
    return this.i;
  }

  public String j()
  {
    return this.j;
  }

  public u k()
  {
    u localu = new u();
    localu.h(true);
    localu.q(this.a);
    localu.r(this.b);
    localu.j(this.g);
    b localb;
    if ((f() != null) && (f().length() > 0))
    {
      localb = localu.a("link", null);
      localb.b("rel", "x-stanza-cover-image-thumbnail");
      if (!f().startsWith("http://"))
        break label123;
    }
    label123: int i1;
    for (String str = f().substring("http://".length()); ; str = f().substring(i1 + 2))
    {
      Object[] arrayOfObject = new Object[1];
      arrayOfObject[0] = str;
      localb.b("href", String.format("http://s.cimg.163.com/i/%s.110x90.auto.jpg", arrayOfObject));
      return localu;
      i1 = f().indexOf("//");
    }
  }
}

/* Location:           D:\android\hack\dex2jar-0.0.9.8\classes_dex2jar.jar
 * Qualified Name:     com.netease.o.a.a
 * JD-Core Version:    0.6.0
 */